<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./vue.js"></script>
    <style>
      div {
        margin: 5px;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div v-for="item in res">
        <input type="text" v-model="item.relative" placeholder="关系" />
        <input type="text" v-model="item.tel" placeholder="练习方式" />
      </div>
      <button @click="res.push({relative: '',tel: '',})">+</button>
      <pre>{{res}}</pre>
    </div>
  </body>
  <script>
    let app = Vue.createApp({
      data() {
        return {
          res: [
            {
              relative: "",
              tel: "",
            },
          ],
        };
      },
      methods: {},
    });
    app = app.mount("#app");
  </script>
</html>
